package com.example.springbootdemo.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.List;


/**
 * category对象 category
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
public class Category extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分类名称 */
    private Long cid;

    /** 名字 */
    private String cname;

    /** 图片名称 */
    private String cimg;

    /** 展示 */
    private Long isshow;
//    添加商品集合
    private List<Goods> goodsList;

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    @JsonFormat(pattern = "yyyy-MM-dd ")
    private java.util.Date createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd ")

    private java.util.Date updateTime;

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public Long getIsshow() {
        return isshow;
    }

    public void setIsshow(Long isshow) {
        this.isshow = isshow;
    }

    @Override
    public java.util.Date getCreateTime() {
        return createTime;
    }


    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public java.util.Date getUpdateTime() {
        return updateTime;
    }


    public void setUpdateTime(java.sql.Timestamp updateTime) {
        this.updateTime = updateTime;
    }
//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("cid", getCid())
//            .append("cname", getCname())
//            .append("cimg", getCimg())
//            .append("isshow", getIsshow())
//            .append("createTime", getCreateTime())
//            .append("createBy", getCreateBy())
//            .append("updateTime", getUpdateTime())
//            .append("updateBy", getUpdateBy())
//            .toString();
//    }
}
